package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.Outbound;
import com.woniu.supermarket.entity.OutboundDetail;
import com.woniu.supermarket.vo.OutboundDetailVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OutboundDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OutboundDetail record);

    OutboundDetail selectByPrimaryKey(Integer id);

    List<OutboundDetail> selectAll();

    int updateByPrimaryKey(OutboundDetail record);

    int deleteByOutboundId(int id);

    int insertBatchOutboundDetail(@Param("outboundDetailList") List<OutboundDetail> outboundDetailList);

    List<OutboundDetailVo> selectByOutboundId(@Param("id") Integer id);
}